<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--CORE 标签库-->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!--FMT 标签库-->
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    // 获得项目完全路径（假设你的项目叫ebuy_2023rj4，那么获得到的地址就是http://localhost:8081/ebuy_2023rj4/）:
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="<%=basePath%>jsp/backstage/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="<%=basePath%>jsp/backstage/js/jquery.js"></script>
    <script>
        function alertMessage(){//配合后端弹出返回的信息
            var message="${requestScope.myMessage}";
            if(message!=""){//如果后端返回了错误信息
                alert(message);
            }
        }

        $(document).ready(function () {
            alertMessage();
        });

    </script>
</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">首页</a></li>
        <li><a href="#">表单</a></li>
    </ul>
</div>

<div class="formbody">

    <div class="formtitle"><span>编辑管理账号</span></div>
    <form action="<%=basePath%>backstage/adminmanage/doUpdateAdmin" method="post">
        <input name="id" type="hidden" class="dfinput" value="${requestScope.admin.id}"/>
        <ul class="forminfo">
            <li><label>账号名</label><input name="username" type="text" class="dfinput" value="${requestScope.admin.username}"/><i></i></li>
            <li><label>姓名</label><input name="name" type="text" class="dfinput" value="${requestScope.admin.name}"/><i></i></li>
            <li><label>性别</label>
                <select name="sex" class="dfinput">
                    <option value="0" <c:if test="${requestScope.admin.sex==0}">selected</c:if>>保密</option>
                    <option value="1" <c:if test="${requestScope.admin.sex==1}">selected</c:if>>男</option>
                    <option value="2" <c:if test="${requestScope.admin.sex==2}">selected</c:if>>女</option>
                </select>
                <i></i>
            </li>
            <li><label>锁定状态</label><cite>
                <input name="unLocked" type="radio" value="true" <c:if test="${requestScope.admin.unLocked==true}">checked="checked"</c:if>/>未锁定
                <input name="unLocked" type="radio" value="false" <c:if test="${requestScope.admin.unLocked==false}">checked="checked"</c:if>/>锁定</cite>
            </li>
            <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
        </ul>
    </form>


</div>
</body>
</html>
